<!DOCTYPE html>
<html lang="en">
<head>
	<{include file="header.html"}>
	<title>题库管理-<{$user_data['school_name']}>-德安信会计在线教育平台</title>
</head>
<body>
<div class="wrap">
	<!--star left-->
	<div class="column">
		<{include file="left_menu.html"}>
	</div>
	<div id="ContMianBox">
		<!--star子栏目-->
		<div class="sub-colum">
            <div class="tit"><{$left_menu_min.menu}></div>
            <ul>
                <{foreach from=$left_menu_min.list item=item}>
                <li <{if $item['url'] == $left_menu_min.curr}>class="curr"<{/if}>><a href="<{$item['url']}>"><{$item['name']}></a></li>
                <{/foreach}>
            </ul>
        </div>
		<!--end子栏目-->
		<!--end left-->
		<div class="container narrow">
		    <!--star conter-->
		    <div class="cetContent">
				<div class="tit p-lr20">
				    <span class="curr">章节强化</span>
				</div>
				<!--star内容区域-->
				<div class="mainScroll">
				    <div class="mainContainer line-all">
				        <!--star tabMainCont-->
				        <div class="tabMainCont">
				            <!--star会员管理-->
							<fieldset class="layui-elem-field">
						  		<legend>筛选</legend>
					  			<div class="layui-field-box">
  									<form class="layui-form layui-form-pane1" method="post">
				                    	<div class="layui-form-item">
										  	<div class="layui-inline">
									            <select name="subject_id" id="subject_id" lay-filter="subject">
						                        	<option value="0">选择科目</option>
	                                                <{foreach from=$subject item=item}>
	                                                    <option value="<{$item.id}>" <{if isset($conditions['subject_id']) AND $conditions['subject_id'] == $item.id}>selected<{/if}>><{$item.title}></option>
	                                                <{/foreach}>
	                                            </select>
										  	</div>

									    	<div class="layui-inline">
									    		<button type="submit" class="layui-btn">搜索</button>
									    	</div>
								    	</div>
				                    </form>
		                    	</div>
							</fieldset>
		                	<form class="layui-form layui-form-pane1" method="post" delete_action="/topic/delete">
			                    <table class="layui-table" lay-even lay-skin="row">
			                        <thead>
									  	 <tr>
									  	 	<th>科目名称</th>
				                            <th>章名称</th>
				                            <th>节名称</th>
				                            <th>完成数/题目总数</th>
				                            <th>正确率</th>
				                        </tr>
								  	</thead>
			                        <{foreach from=$result_data item=item}>
			                        	<{assign var="i" value="0"}>
			                        	<{foreach from=$item.list item=chap key=key name=chap_key}>
			                        		<{foreach from=$chap.list item=ch_chap name=ch_chap_key}>
			                        		<tr>
			                        		<{if $i == 0}>
			                        		<td class="tal not_lb" rowspan="<{$item.count}>"><{$item.name}><span class="hide"><{$i++}></span></td>
			                        		<{/if}>
			                        		<{if $smarty.foreach.ch_chap_key.index == 0}>
											<td class="tal not_lb" rowspan="<{$chap.list|count}>"><{$ch_chap.p_title}></td>
											<{/if}>
											<td class="tal not_lb"><{$ch_chap.title}></td>
											<td class="tal not_lb"><{$ch_chap.count}>/<{$ch_chap.topic_total}></td>
											<td class="tal not_lb">
											<{if $ch_chap.wrong_count == 0}>
												100
											<{else}>
												<{$ch_chap.right_count / ($ch_chap.right_count+$ch_chap.wrong_count) * 100}>
											<{/if}>
											%
											</td>
											</tr>

			                        		<{/foreach}>
				                       
				                        <{/foreach}>
			                        <{/foreach}>
			                    </table>
		                    </form>
			            </div>
			            <!--star会员管理-->
			        </div>
				        <!--end tabMainCont-->
		        </div>

		    </div>
		</div>

	</div>
	<{include file="footer.html"}>
</div>
</body>
</html>
